 package com.gmrz.uaf.servlet.v1.validation;
 
 public class ValidationCriteria<T>
 {
   Class<T> type;
   int maxLength;
   String restrictionRegex;
   boolean allowEmptyValue;
   boolean required;
 
   public ValidationCriteria(Class<T> type, int maxLength, String restrictionRegex, boolean allowEmpty, boolean required)
   {
     this.type = type;
     this.maxLength = maxLength;
     this.restrictionRegex = restrictionRegex;
     this.allowEmptyValue = allowEmpty;
     this.required = required;
   }
 
   public void setRestrictionRegex(String restrictionRegex)
   {
     this.restrictionRegex = restrictionRegex;
   }
 }
